﻿using Hopscotch.Common.Contracts.AppService;
using Hopscotch.Server.AppServiceFake;
using Hopscotch.Server.Common.Contracts;
using Hopscotch.Server.EnqServiceFake;
using Microsoft.Practices.Unity;

namespace Hopscotch.Application.FakeServer
{
    public static class UnityConfiguration
    {
        public static void ConfigureContainer(IUnityContainer container)
        {
            //App Service Fakes:
            container.RegisterType<IInstrumentService, InstrumentService>();
            container.RegisterType<ITradeService, TradeService>();

            //Enq Services Fakes:
            container.RegisterType<IInternalTradeEnqService, TradeEnqService>(new ContainerControlledLifetimeManager());
            container.RegisterType<IInternalInstrumentEnqService, InstrumentEnqService>(new ContainerControlledLifetimeManager());
        }
    }
}
